package com.lill.system.serivce.impl;

import java.awt.image.BufferedImage;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.google.code.kaptcha.Producer;
import com.lill.system.service.IKaptchaService;

@Service("kaptchaService")
public class KaptchaServiceImpl implements IKaptchaService {

	@Autowired
    private Producer producer;

	public String getkaptcha() {
		return producer.createText();
	}

	public BufferedImage createImage(String text) {
		return producer.createImage(text);
	}
	
}
